package com.ming.sportdemo.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ming.sportdemo.bean.Clothes;
import com.ming.sportdemo.bean.Order;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@Mapper
@Repository
public interface ClothesDao extends BaseMapper<Clothes> {
        public Clothes getClothesByMessage(@Param("clothesId") String clothesId, @Param("clothesName") String clothesName, @Param("clothesPrice") String clothesPrice);
        public List<Clothes> getAllClothes(@Param("clothesType")String clothesType,@Param("clothesName")String clothesName, @Param("pageStart") int pageStart, @Param("pageSize")int pageSize);
        public int getClothesCounts(@Param("clothesName")String clothesName);
        public int addClothes(Clothes clothes);
        public int deleteClothes(@Param("clothesId") int clothesId);
        public int updateClothes(Clothes clothes);
        Clothes getByName(@Param("clothesName")String clothesName);
        int sub(@Param("clothesId")int clothesId);
}

